package com.lsu.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 课程类型表
 * @Date 2023-11-03 12:52:12
 * @author hjj
 */
@Data
@TableName("kind")
@ApiModel(value="Kind对象", description="课程类型表")
public class Kind implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotBlank(message="[类型名称]不能为空")
    @Size(max= 64,message="编码长度不能超过64")
    @ApiModelProperty("类型名称")
    private String kvValue;

    @NotNull(message="[课程id]不能为空")
    @ApiModelProperty("课程id")
    private Integer courseId;

    @JsonIgnore //数据库中不会输出该字段到json中
    @ApiModelProperty("类型对应值")
    private Integer kvValueId;

    @ApiModelProperty("创建时间")
    private String createTime;

    public Kind() {
    }

    public Kind(String kvValue, Integer courseId, String createTime,Integer kvValueId) {
        this.kvValue = kvValue;
        this.courseId = courseId;
        this.createTime = createTime;
        this.kvValueId=kvValueId;
    }
}
